package com.example.bookmanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("books")
@Schema(description = "图书实体")
public class Book {

    @TableId(type = IdType.AUTO)
    @Schema(description = "图书ID，自动增长", example = "1")
    private Long id;

    @Schema(description = "书名", example = "Java编程思想")
    private String bookname;

    @Schema(description = "作者", example = "Bruce Eckel")
    private String author;

    @Schema(description = "出版社", example = "机械工业出版社")
    private String publisher;

    @Schema(description = "出版日期", example = "2007-06-01 12:14:15")
    private String publishDate;

    @Schema(description = "库存数量", example = "10")
    private Integer stock;

    @Schema(description = "入库时间", example = "2023-10-01 10:00:00")
    private String storageTime;
}    